//
//  AppDelegate.swift
//  Weibo
//
//  Created by 闫博123 on 16/1/10.
//  Copyright © 2016年 闫博123. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        // 调用全局颜色设置 需要尽早设置 必须在视图实例化之前进行设置
        setNavBarColor()
        
        // 实例化window
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        // 设置背景颜色
        window?.backgroundColor = UIColor.whiteColor()
        
        // 设置根视图控制器
        window?.rootViewController = MainViewController()
        
        // 设置window可视化
        window?.makeKeyAndVisible()
        
        return true
    }
    
    private func setNavBarColor()
    {
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
        
        // 设置文字样式
        UITabBar.appearance().tintColor = UIColor.orangeColor()
    }

    


}

